<?php

class Value extends CFormModel {
	public $value;
	
	public function rules() {
		return array(
			array('value','required'),
		);
	}
	
	public function attributeLabels() {
		return array(
			'answer'=>'How are you different from your competitors? Your product is',
		);
	}
	
	public function getForm() {
		return new CForm(array(
			'showErrorSummary'=>true,
			'attributes'=>array('id'=>'survey'),
			'elements'=>array(
				'value'=>array(
					'type'=>'dropdownlist',
					'items'=>Business::model()->getVPropositionOptions(),
					'layout'=>'{label}<br/>{input}<br/>{error}'
				),
			),
			'buttons'=>array(
				'submit'=>array(
					'type'=>'submit',
					'label'=>'Next'
				)
			)
		), $this);
	}
}